| Server IP : 43.153.74.48 / Your IP : 216.73.216.28 Web Server : LiteSpeed System : Linux VM-0-13-ubuntu 5.15.0-113-generic #123-Ubuntu SMP Mon Jun 10 08:16:17 UTC 2024 x86_64 User : www ( 1002) PHP Version : 8.1.29 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/stainlesstint.com/wp-content/themes/woodmart/ |
Upload File : |
<?php
/**
* The default template for displaying content
*/
$size = woodmart_loop_prop( 'portfolio_image_size' );
if ( woodmart_is_elementor_installed() ) {
$custom_sizes = woodmart_loop_prop( 'portfolio_image_size_custom' );
$img = woodmart_get_image_html( // phpcs:ignore
array(
'image_size' => $size,
'image_custom_dimension' => $custom_sizes,
'image' => array(
'id' => get_post_thumbnail_id(),
),
),
'image'
);
} elseif ( function_exists( 'wpb_getImageBySize' ) ) {
$img = wpb_getImageBySize(
array(
'attach_id' => get_post_thumbnail_id(),
'thumb_size' => $size,
)
);
$img = isset( $img['thumbnail'] ) ? $img['thumbnail'] : '';
} else {
$img = get_the_post_thumbnail( $post->ID, $size );
}
$classes[] = 'portfolio-entry';
$columns = woodmart_loop_prop( 'portfolio_column' );
$style = woodmart_loop_prop( 'portfolio_style' );
$classes[] = 'portfolio-single';
$cats = wp_get_post_terms( get_the_ID(), 'project-cat' );
if ( ! empty( $cats ) ) {
foreach ( $cats as $key => $cat ) {
$classes[] = 'proj-cat-' . $cat->slug;
}
}
$classes[] = 'portfolio-' . $style;
$info_classes = '';
if ( 'text-shown' !== $style ) {
$info_classes .= ' color-scheme-light';
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
<header class="entry-header">
<?php if ( has_post_thumbnail() ) : ?>
<figure class="entry-thumbnail color-scheme-light">
<a href="<?php echo esc_url( get_permalink() ); ?>" class="portfolio-thumbnail">
<?php echo $img; ?>
</a>
<div class="wd-portfolio-btns">
<div class="portfolio-enlarge wd-action-btn wd-style-icon wd-enlarge-icon wd-tltp wd-tltp-left">
<a href="<?php echo esc_url( wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) ) ); ?>" data-elementor-open-lightbox="no"><?php esc_html_e( 'View Large', 'woodmart' ); ?></a>
</div>
<?php if ( woodmart_is_social_link_enable( 'share' ) ) : ?>
<div class="social-icons-wrapper wd-action-btn wd-style-icon wd-share-icon wd-tltp <?php echo is_rtl() ? 'wd-tltp-right' : 'wd-tltp-left'; ?>">
<a></a>
<div class="wd-tooltip-label">
<?php
if ( function_exists( 'woodmart_shortcode_social' ) ) {
echo woodmart_shortcode_social(
array(
'size' => 'small',
'style' => 'default',
'color' => 'light',
)
);}
?>
</div>
</div>
<?php endif ?>
</div>
</figure>
<?php endif; ?>
<div class="portfolio-info<?php echo esc_attr( $info_classes ); ?>">
<?php if ( ! empty( $cats ) ) : ?>
<div class="wrap-meta">
<ul class="proj-cats-list">
<?php foreach ( $cats as $key => $cat ) : ?>
<?php $classes[] = 'proj-cat-' . $cat->slug; ?>
<li><?php echo esc_html( $cat->name ); ?></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<div class="wrap-title">
<h3 class="wd-entities-title">
<a href="<?php echo esc_url( get_permalink() ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h3>
</div>
</div>
</header>
</article>